package person;

public class Test {
    public static void main(String[] args) {

        Dog dog = new Dog();
        dog.setName("大黄");
        dog.setAge(2);
        Cat cat = new Cat();
        cat.setName("大菊");
        cat.setAge(2);
        System.out.println("这只狗叫"+dog.getName()+"它今年"+dog.getAge()+"岁");
         dog.stat();
        System.out.println("这只猫叫"+cat.getName()+"它今年"+cat.getAge()+"岁");
         cat.stat();

    }
}
